package cn.silver.module.message.helper;

import cn.silver.module.message.enums.ChannelTypeEnums;
import cn.silver.module.message.enums.NoticeTypeEnums;
import cn.silver.module.message.service.*;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

import static cn.silver.framework.core.constant.CacheConstants.MODEL_MAP;

/**
 * @author zhouxiaobo
 */
@Getter
@Component
@RequiredArgsConstructor
public class MessageServiceFactory {
    private final IMsgNoticeService noticeService;
    private final IMsgNoticeUserService noticeUserService;
    private final IMsgMessageService messageService;
    private final IMsgMessageUserService userService;
    private final IMsgMessageRecordService recordService;
    private final IMsgMessageAttachService attachService;
    private final IMsgTemplateContentService contentService;
    private final IMsgTemplateParamService paramService;
    private final IMsgTemplateService templateService;

    public void init() {
        MODEL_MAP.put("msg-notice-type", NoticeTypeEnums.getModels());
        MODEL_MAP.put("msg-channel-type", ChannelTypeEnums.getModels());
    }
}
